package com.qingneng.budget.service.sdk.impl;

import com.qingneng.budget.dao.ICompanyDAO;
import com.qingneng.budget.service.sdk.ICompanyService;
import com.qingneng.budget.vo.Company;

public class CompanyServiceImpl implements ICompanyService {
	private ICompanyDAO companyDAO = null;

	public void setCompanyDAO(ICompanyDAO companyDAO) {
		this.companyDAO = companyDAO;
	}

	public ICompanyDAO getCompanyDAO() {
		return companyDAO;
	}

	public Integer getTotalCount() throws Exception {
		return null;
	}

	public void add(Company company) throws Exception {
		companyDAO.saveCompanyInfo(company);
	}

	public void destory(Company company) throws Exception {
		companyDAO.deletecompanyInfo(company);
	}

	public void modify(Company company) throws Exception {
		companyDAO.updateCompanyInfo(company);
	}
	
	
}
